﻿
@{
    Layout = null;
    var result = ViewBag.Courses as List<WebApplication1.Models.Student>;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <h1>@ViewData["myName"]</h1>
    <a href="/Home/About">关于</a>
    <table>
        <thead>
            <tr>
                <td>名字</td>
                <td>年龄</td>
                <td>班别</td>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in result)
            {
                <tr>
                    <td>@item.StuName</td>
                    <td>@item.Age</td>
                    <td>@item.StuClass</td>



                </tr>
            }
        </tbody>
    </table>
</body>
</html>
